//
//  STOMPClientManager.h
//  NewPro
//
//  Created by RYX on 2019/2/20.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <WebsocketStompKit/WebsocketStompKit.h>

typedef void(^StompReciveBlock)(NSString *body);

@interface STOMPClientManager : NSObject

@property (nonatomic,copy) StompReciveBlock block;

@property (nonatomic, strong) STOMPClient *client;

+ (instancetype)sharedInstance;

/**
 * 接收消息回调
 */
- (void)returnText:(StompReciveBlock)block;

/**
 * 连接
 */
- (void)clientContent;

/**
 * 发送消息
 */
- (void)sendMsg:(NSString *)msg;

@end


